<?php
 class Customervideos extends CI_Model{
    
    function __construct(){
        parent::__construct();
    }
    
    /**
     * Get list product index
     * @author tien.nguyen
     * @return array
     */
    public function getListCustomerDetail($customerId){       
       $this->db->select();
       $this->db->from('customer_videos');
       $this->db->join('videos', 'videos.VideoId = customer_videos.VideoId');
       $this->db->order_by('customer_videos.CreatedDate', 'DESC');
       $this->db->where('customer_videos.CustomerId = '.$customerId);
       $query = $this->db->get();
       return $query->result_array(); 
    }
 }
?>